recents();
sleep(1000);
click(device.width / 2, device.height / 2);
sleep(1000)
//左手
leftchord = "ttttttt ttttrrt  ttttttr ttttttr ttttttt ttttrrt"
//右手
righttheme = "sshhjjh ggffdds hhggffd hhggffd sshhjjh ggffdds"
for (n in righttheme) {
    if (/[a-z]/i.test(righttheme[n])) {
        rightrect = className("android.view.View").text(righttheme[n].toUpperCase()).findOne().bounds();
        press(rightrect.left, rect.centerY(), 25);
        leftrect = className("android.view.View").text(leftchord[n].toUpperCase()).findOne().bounds();
        press(leftrect.left, rect.centerY(), 25);
        sleep(450);
    } else if (/[0-9]/i.test(righttheme[n])) {
        sleep(300);
    } else {
        sleep(500);
    }
}
